x=0
for i in range(1,967):
    if i%2==1:
        x +=i
    else:
        x -=i
print("1-2+3-...+966的总和为: ",x)